package cn.edu.nju.software.postgresqlmanage;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class PostgreSQLConnection {
	private static String head = "jdbc:postgresql://localhost:5432/";
    private static String databaseName = "postgres";
    private static String userName = "postgres";
    private static String password = "postgres";
    
    public static Connection getConnection() throws SQLException{
    	String url = head + databaseName + "?user=" + userName +"&password=" + password;
    	Connection conn = DriverManager.getConnection(url);
    	
    	return conn;
    }
}
